﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public enum PlantType
{
    Sunflower,
    Peashooter
}

public class PlantManager : MonoBehaviour
{
    public static PlantManager Instance;
    private void Awake()
    {
        Instance = this;
    }

    public GameObject GetPlantForType(PlantType type)
    {
        switch (type)
        {
            case PlantType.Sunflower:
                return GameManager.Instance.GameConf.Sunflower;
            case PlantType.Peashooter:
                return GameManager.Instance.GameConf.Peashooter;
        }
        return null;
    }
}
